package cn.com.lyb.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 工作流实例
 * </p>
 *
 * @author lvyuanbo
 * @since 2024-07-19
 */
@TableName("workflow_instance")
@ApiModel(value="WorkflowInstanceDO对象", description="工作流实例")
public class WorkflowInstanceDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "工作流id")
    private Long workflowId;

    @ApiModelProperty(value = "状态 1 未开始  2 进行中 3 成功 4 失败 5 暂停")
    private String status;

    @ApiModelProperty(value = "当前任务运行code")
    private Long currentTaskCode;

    @ApiModelProperty(value = "当前任务运行id")
    private Long currentTaskId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getWorkflowId() {
        return workflowId;
    }

    public void setWorkflowId(Long workflowId) {
        this.workflowId = workflowId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getCurrentTaskId() {
        return currentTaskId;
    }

    public void setCurrentTaskId(Long currentTaskId) {
        this.currentTaskId = currentTaskId;
    }

    public Long getCurrentTaskCode() {
        return currentTaskCode;
    }

    public void setCurrentTaskCode(Long currentTaskCode) {
        this.currentTaskCode = currentTaskCode;
    }
}
